package com.sgs.carbon.starter.dict.conf;

import com.sgs.carbon.starter.dict.core.service.DictDataService;
import com.sgs.carbon.starter.dict.core.util.DictUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 数据字典自动配置类
 *
 * @author Dave Liu
 * @date 2021-10-02
 */
@Configuration
@SuppressWarnings("all")
public class DictAutoConfiguration {

    @Bean
    public DictUtils dictUtils(DictDataService service) {
        DictUtils.init(service);
        return new DictUtils();
    }

}
